﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Bussiness;

namespace EWebsite {
    public partial class Default : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {
            if (!IsPostBack) {
               // _dataBind();
            }
        }

        protected void _dataBind() {
            ProductBuss buss = new ProductBuss();
            listViewProducts.DataSource = buss.getProducts();
            listViewProducts.DataBind();
        }

        protected void DataPagerProducts_PreRender(object sender, EventArgs e) {
            _dataBind();
        }
    }
}